package controller;

import enity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class TestController {
    @Autowired
    public User user;
    public void setUser() {
        System.out.println(user);
        user.setName("王五");
        System.out.println(user);
    }
}
